package com.yf.exam.modules.paper.dto;

import com.yf.base.api.annon.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
* <p>
* 试卷考题请求类
* </p>
*
* @author 聪明笨狗
* @since 2020-05-25 17:31
*/
@Data
@ApiModel(value="试卷考题", description="试卷考题")
public class PaperQuDTO implements Serializable {


    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "ID", required=true)
    private String id;

    @ApiModelProperty(value = "大题ID", required=true)
    private String groupId;

    @ApiModelProperty(value = "试卷ID", required=true)
    private String paperId;

    @ApiModelProperty(value = "题目ID", required=true)
    private String quId;

    @Dict(dicCode = "qu_type")
    @ApiModelProperty(value = "题目类型", required=true)
    private String quType;
    private String quType_dictText;

    @ApiModelProperty(value = "是否已答", required=true)
    private Boolean answered;

    @ApiModelProperty(value = "是否子题", required=true)
    private Boolean child;

    @ApiModelProperty(value = "引用题目ID", required=true)
    private String refId;

    @ApiModelProperty(value = "是否标记", required=true)
    private Boolean mark;

    @ApiModelProperty(value = "主观答案")
    private String answer;

    @ApiModelProperty(value = "主观题媒体")
    private String media;

    @ApiModelProperty(value = "问题排序", required=true)
    private Integer sort;

    @ApiModelProperty(value = "填空题按序", required=true)
    private Boolean answerOrder;

    @ApiModelProperty(value = "单题分分值", required=true)
    private BigDecimal score;

    @ApiModelProperty(value = "实际得分(主观题)", required=true)
    private BigDecimal actualScore;

    @ApiModelProperty(value = "是否答对", required=true)
    private Boolean isRight;

}
